﻿#parse("/user/admin/inc/top.htm")
<div class="clearfix"></div>
<div class="MainPannel">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td height="38" align="center"><table width="98%" height="34" border="0" cellpadding="0" cellspacing="0">
          <tr>
              <td width="40" align="right"><img src="/images/list.gif" width="32" height="32" /></td>
              <td class="titletxt">博客图片</td>
          </tr>
        </table></td>
    </tr>
</table>
<script language="JavaScript" src="/js/forbidNew.js" type="text/JavaScript"></script>
<script language="JavaScript" src="/js/ajaxSupport.js" type="text/JavaScript"></script>
<script language="JavaScript">
var timer;
var win;
function smdWin(){
	if(document.getElementById("file").value=="")
	{
		alert("请选择要上传的文件!");
		return false;
	}
	win=window.showModalDialog("/blogPhoto.do?parameter=upload",window,"dialogWidth=500px;dialogHeight=240px;status=0;scroll:no");	
	if(win=="ok"){
		EditForm.submit();
	}
}

function doDel(cid){
 if(confirm("确定删除此照片吗？")){
	ListForm.cid.value=cid;
	ListForm.parameter.value="del";
	ListForm.submit();
	}
}

function fontZoom(size){
	document.getElementById('content').style.fontSize=size+'px'
}

function doCheckForm()
{
	if(EditForm.title.value=="")
	{	
		alert("名称不能为空!");		
		return false;		
	}
	if(EditForm.url.value==""&&EditForm.file.value=="")
	{
		alert("必须选择要上传的图片或录入图片连接!");		
		return false;		
	}
	return true;
}
</script>
<table width="100%" height="100%"  border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td align="center" valign="top">
<div style="margin:8px">
<table width="100%" border=0 align="center" cellpadding=0 cellspacing=0>
	<tbody>
		<tr>
			<td valign=top><table cellspacing=0 cellpadding=0 width=100% border=0>
					<tbody>
						<tr>
							<td valign=top><table style="height:100%;overflow:auto;">
									<tr> #set($count=0)
										#foreach( $info in $list)
										#set($count=$count+1)
										<td><table width="210" helght="200" border="1" align="center" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF" bordercolorlight="#000000" style="word-break:break-all;">
												<tr>
													<td align="left" bgcolor="#cde7dc"><b>标题:</b> $!info.title</td>
													<td width="80" align="right" bgcolor="#cde7dc"><a href="/blogPhoto.do?parameter=edit&cid=$!info.cid">修改</a> <a href="javascript:doDel('$!info.cid')">删除</a> &nbsp;&nbsp;</td>
												</tr>
												<tr align="center">
													<td height="100" colspan="2" class="font1"><a href="/$!blog.domain$!info.url" target="_blank"><img src="/$!blog.domain$!info.s_url" width="120" height="98" alt="" border="0" /></a></td>
												</tr>
												<tr>
													<td colspan="2" width="100%" bgcolor="#cde7dc">时间: $!info.inputtime </td>
												</tr>
											</table></td>
										#set($temp=$count%3)
										#if($temp==0) </tr>
									#end
									#end
								</table>
								</form></td>
						</tr>
					</tbody>
				</table></td>
		</tr>
	</tbody>
</table>
</div>
<table width="100%" border="0" align="center" cellspacing="0" cellpadding="5" bordercolordark="#FFFFFF" bordercolorlight="#000000" style="word-break:break-all;">
	<tr>
		<td width="100%" align="center"><form id="ListForm" name="ListForm"  method="post" action="/blogPhoto.do">
				<input type="hidden" name="parameter" value="">
				<input type="hidden" name="cid" value="$!cid">
				<input type="hidden" name="mulitCid" value="$!mulitCid">
				<input type="hidden" name="page" value="$!page">
				<input name="orderField" type="hidden" value="$!orderField">
				<input name="orderType" type="hidden" value="$!orderType">
			</form>
			 <br/>第<strong>
	#if($!page>0)
	$!page
	#else
	 1
	#end
	
	</strong>页 共<strong>#if($!pages>0)
	$!pages
	#else
	 1
	#end</strong>页<span class="txt1">[共<b>$!rows</b>条记录]</span>
	　　
	#if($gotoPageHTML=="")
	#else
     分页：$!gotoPageHTML　
	#end 
	</td>
	</tr>
</table>
<table cellspacing=0 cellpadding=0 width="100%" height="50" align=center border=0>
	<form id="EditForm" action="/blogPhoto.do" method="post" enctype="multipart/form-data" name="EditForm" onSubmit="javascript:return doCheckForm();">
		<input type="hidden" name="parameter"  value="save" >
		<input type="hidden" id="dirid" name="dirid" value="$!dirid" >
		<input type="hidden" id="circlesn" name="circlesn" value="$!circlesn" >
		<input type="hidden" id="title" name="title" value="$!title" >
		<input type="hidden" id="intro" name="intro" value="$!intro" >
		<tr>
			<td align=right height=22><span class=font05><span class="font06"><img  src="/images/dc_img14.gif">上传照片</span>：</span></td>
			<td height=22><input id="file" type="file" name="file">
				<input type="button" name="Submit" value="上传" onClick="smdWin()"></td>
		</tr>
	</form>
</table>
	</td>
</tr>
</table>
	<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
#parse("/user/admin/inc/bottom.htm")
</body>
</html>
#if($msg)
<script>
alert('$!msg');
</script>
#end